﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace weba
{
    public partial class editwz : System.Web.UI.Page
    {
        sjklqDataContext sjk = new sjklqDataContext();
        public int  ida;
        protected void Page_Load(object sender, EventArgs e)
        {
            ida =int.Parse( Request.QueryString["id"]);
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            string jd = sjk.dituwz.Where(h => h.Id == ida).FirstOrDefault().lx;
            string wd = sjk.dituwz.Where(h => h.Id == ida).FirstOrDefault().ly;

            Response.Redirect(Request.Url.ToString() + "&jd=" + jd + "&wd=" + wd);
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("editallwd.aspx");
        }
    }
}